package com.jjb.saas.demo.client.role.request;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author tzh * @date 2022年07月08日 18:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RoleAddCmd extends Command {

    @ApiModelProperty(value = "角色名称",required = true)
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "权限组",required = true)
    @NotEmpty(message = "权限组不能为空")
    private List<Long> permsGroupIds;
    
    @ApiModelProperty(value = "角色类型",required = true)
    @NotBlank(message = "角色类型不能为空")
    private String roleTypeEnum;
}
